package com.zbl.springdemo.bean.cycle;

import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class CycleC implements Cycle {
    @Resource
    private Cycle cycleA;

    @Override
    public void cycle() {
        System.out.println("CycleC");
        System.out.println("Cycle");
        cycleA.cycle();
    }
}
